home *** CD-ROM | disk | FTP | other *** search
- /*
- * $VER: PreviewPage 2.0 (5.04.96)
- *
- * Arexx program for the ImageFX image processing system.
- * Written by Piotr Bieniek
- *
- * PreviewPage - creates preview pages for pictures.
- *
- */
-
- OPTIONS RESULTS
-
- /* change following variables (see ReadMe) */
- background = "Work:Multimedia/Scala/Backgrounds/Stones013"
- titlefont = "BrooklynPLBold.font 30"
- titletext = "Preview Page"
- font = "helvetica.font 18"
-
- 'Redraw Off'
- 'Undo Off'
-
- /* load and display background */
- 'LoadBuffer' background 'Force'
- 'Text FONT' titlefont 'TEXT' titletext
- 'Point 320 20'
- 'KillBrush'
- 'Redraw'
-
-
- /* load, scale and paste pictures */
- do y=0 to 2
- do x=0 to 3
-
- /* load picture */
- 'Swap'
- 'LoadBuffer Force'
-
- If rc=0 Then
- do
-
- 'GetMain'
- Parse Var result '"'name'"' width height trash
-
- /* scale picture to the proper dimensions */
- If width*512<height*640 Then
- do
- newwidth=width*102/height
- newheight=102
- end
- Else
- do
- newwidth=128
- newheight=height*128/width
- end
- 'Scale' newwidth newheight
-
- /* paste picture */
- 'Swap'
- 'Swap2Brush'
- 'KillSwap'
- 'OutlineBrush'
- 'OutlineBrush'
- 'Point' 95+(150*x) 120+(150*y)
- 'KillBrush'
-
- /* extract filename only (without path) */
- oldname=name
- Parse Var oldname trash ':' name
- If name='' Then name=oldname
- do forever
- oldname=name
- Parse Var oldname trash '/' name
- If name='' Then Leave
- end
-
- 'Text FONT' font 'TEXT' oldname
- 'Point' 95+(150*x) 186+(150*y)
- 'KillBrush'
-
- 'Redraw' 20+(150*x) 50+(150*y) 150 150
-
- end
-
- Else
- do
- 'Swap'
- SIGNAL quit
- end
-
- end
- end
-
- /* quit */
- quit:
- 'Undo On'
- 'Redraw On'
-
- EXIT
-